fix bug with case insensitive compares in gpx and garmin.
authortsteven4@gmail.com <tsteven4@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 13 Feb 2014 01:38:00 +0000 (01:38 +0000)
committertsteven4@gmail.com <tsteven4@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 13 Feb 2014 01:38:00 +0000 (01:38 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4733 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/garmin.cc
gpsbabel/gpx.cc

index 677f1d3ad8e4974963de15d2b3ce2f2e6625812e..d5dd6a297b928e45670a0f33ba903d3dfad63de9 100644 (file)
@@ -1314,7 +1314,7 @@ d103_icon_number_from_symbol(const QString& s)
   }
 
   for (i = 0; i < sizeof(d103_icons) / sizeof(d103_icons[0]); i++) {
-    if (0 == (s.compare(d103_icons[i]), Qt::CaseInsensitive)) {
+    if (0 == (s.compare(d103_icons[i], Qt::CaseInsensitive))) {
       return i;
     }
   }
index d9063be5771b4a2ccbc011c5fb00e84c4ff01c98..a6c830cddade46d53bcf45fad01fc3f27341bc38 100644 (file)
@@ -1140,11 +1140,11 @@ gpx_end(const QString& el)
     wpt_tmp->fix = (fix_type)(atoi(CSTR(cdatastr)) - 1);
     }
     if (wpt_tmp->fix < fix_2d) {
-      if ((cdatastr.compare("none"), Qt::CaseInsensitive) == 0) {
+      if ((cdatastr.compare("none", Qt::CaseInsensitive)) == 0) {
         wpt_tmp->fix = fix_none;
-      } else if ((cdatastr.compare("dgps"), Qt::CaseInsensitive) == 0) {
+      } else if ((cdatastr.compare("dgps", Qt::CaseInsensitive)) == 0) {
         wpt_tmp->fix = fix_dgps;
-      } else if ((cdatastr.compare("pps"), Qt::CaseInsensitive) == 0) {
+      } else if ((cdatastr.compare("pps", Qt::CaseInsensitive)) == 0) {
         wpt_tmp->fix = fix_pps;
       } else {
         wpt_tmp->fix = fix_unknown;